package com.xc.stock.enhance.eventbus;

import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
@ConditionalOnProperty(value = "eventbus.enabled", havingValue = "true", matchIfMissing = true)
public class EventBusAutoConfiguration {
	
	@Bean
	public EventBusCenter eventBusCenter() {
		return new EventBusCenter();
	}
}